scala_library(
    sources = ["**/*.scala"],
    compiler_option_sets = ["fatal_warnings"],
    platform = "java8",
    provides = scala_artifact(
        org = "com.twitter",
        name = "twitter-server",
        repo = artifactory,
    ),
    scope = "forced",  # Exposes a service-loaded class.
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/io/netty:netty4",
        "3rdparty/jvm/io/netty:netty4-codec-http",
        "3rdparty/jvm/org/slf4j:slf4j-api",
        "finagle/finagle-base-http/src/main",
        "finagle/finagle-core/src/main",
        "finagle/finagle-http/src/main/scala",
        "finagle/finagle-netty4-http/src/main/scala",
        "finagle/finagle-netty4/src/main/scala",
        "finagle/finagle-stats-core/src/main/scala",
        "finagle/finagle-toggle/src/main/scala",
        "finagle/finagle-tunable/src/main/scala",
        "twitter-server/server/src/main/resources",
        "util/util-app/src/main/scala",
        "util/util-core:scala",
        "util/util-jackson/src/main/scala/com/twitter/util/jackson",
        "util/util-jvm/src/main/scala",
        "util/util-lint/src/main/scala",
        "util/util-registry/src/main/scala",
        "util/util-slf4j-api/src/main/scala",
        "util/util-slf4j-jul-bridge/src/main/scala",
        "util/util-stats/src/main/scala",
        "util/util-tunable/src/main/scala",
    ],
    exports = [
        "3rdparty/jvm/org/slf4j:slf4j-api",
        "finagle/finagle-base-http/src/main",
        "finagle/finagle-http/src/main/scala",
        "util/util-app/src/main/scala",
        "util/util-core:scala",
        "util/util-jackson/src/main/scala/com/twitter/util/jackson",
        "util/util-lint/src/main/scala",
        "util/util-slf4j-api/src/main/scala",
        "util/util-slf4j-jul-bridge/src/main/scala",
    ],
)
